﻿using persistencia;
using System.Data.SqlClient;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net;
using GIO.dominio;

namespace GIO.paginas
{
    public partial class consultaIncidentes : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {


            List<GIO.dominio.incidente> incidentes = new List<dominio.incidente>();
            string url = String.Format("http://192.168.1.5:8082/optimizaAppWeb/rest/incidente/todos");
            manejadorIncidente mi = manejadorIncidente.Instance;
            gvIncidentes.DataSource = mi.parseIncidentesJson(url);
            gvIncidentes.DataBind();
        }
    }
}